#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[]) {
    printf("主进程执行...\n");
    int result = system("ping -c 100 www.baidu.com");
    if (result != 0) {
        printf("无法执行指令\n");
        return 1;
    }
    return 0;   
}